package com.gdcp.mapper;

import com.gdcp.beans.Banner;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface BannerMapper {

    int insert(Banner banner);

    List<Banner> findPageBreakByCondition(Map<String, Object> param);

    int removeByPrimaryKey(@Param(value = "id") Integer id);

    int updateByPrimaryKey(Banner banner);

    Banner getInformation(@Param(value = "id") Integer id);

    List<Banner> queryByStatus();

    List<Banner> searchInformation(Map<String, Object> param);
}
